package src.first;

public class TheSameName {

    private int x;
    private class Inner{
        private int x = 9;
        public void doit(int x){
            x++;
            this.x++;
            TheSameName.this.x++;
        }
    }

    public static void main(String[] args) {
        TheSameName theSameName = new TheSameName();
        TheSameName.Inner inner = theSameName.new Inner();
        inner.doit(5);
        System.out.println(theSameName.x+",外部类");
        System.out.println(inner.x+",内部类");
    }
}
